Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

interfaces: generalize constant folding for patterns #14526

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zyga
Copy link
Contributor

@zyga zyga commented Sep 20, 2024

The existing constant folding mechanism for sequences-of-literals is now generalized to inject the literal into the following item, possibly reducing the complexity of the tree at the cost of making the tree contain longer strings.

The tests are not fully adjusted, as the render test measures precise indices that were too tedious to fix on Friday.

Thanks for helping us make a better snapd!
Have you signed the license agreement and read the contribution guide?

The existing constant folding mechanism for sequences-of-literals is now generalized
to inject the literal into the following item, possibly reducing the complexity
of the tree at the cost of making the tree contain longer strings.

The tests are not fully adjusted, as the render test measures precise indices that
were too tedious to fix on Friday.

Signed-off-by: Zygmunt Krynicki <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant